package com.projles.release1.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class BDHelper extends SQLiteOpenHelper{

	/*
	 * Eram testes - revisar e adicionar as tabelas e atributos necessarios
	 */
	
	private static final String NOME_DB = "dadosApp";

	private static final int VERSAO_DB = 1;

	private static final String SQL_CRIA_TABELA = "CREATE TABLE jogadores (_id INTEGER PRIMARY KEY AUTOINCREMENT, "
												+ "nome TEXT NOT NULL);";

	public BDHelper(Context context) {
		super(context, NOME_DB, null, VERSAO_DB);
	}

	@Override
	public void onCreate(SQLiteDatabase bd) {
		bd.execSQL(SQL_CRIA_TABELA);
	}
	
	@Override
	public void onUpgrade(SQLiteDatabase bd, int oldVersion, int newVersion) {
		// TODO
	}

}
